package com.hksj.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 设备元数据解析最新表
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("hk_device_metadata_parse_info")
public class DeviceMetadataParseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id(32位uuid)")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "设备id(32位uuid)")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "属性类型(temperature、humidity等)")
    @TableField("property")
    private String property;

    @ApiModelProperty(value = "属性对应的类型(float、double等数字类型、还有text等文本类型)")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "属性对应的字符值(可能推送的属性不一定为数字类型的数据)")
    @TableField("value")
    private String value;

    @ApiModelProperty(value = "属性对应的数字值")
    @TableField("number_value")
    private Double numberValue;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
}
